home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Compilers⁄Interps / Harvest C / Source Code / lookup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-02  |  963 b   |  24 lines  |  [TEXT/ALFA]

  1. struct nlist {            /* basic symbol table entry */
  2.     char                           *sym_name;
  3.     int                             sym_def;
  4.     char                            sym_type;    /* type of symbol entry */
  5.     struct nlist                   *sym_next;    /* next entry in chain */
  6. };
  7.  
  8. struct nlist                   *lookup();
  9.  
  10. /* sym_types */
  11. #define SYM     0        /* a user defined symbol */
  12. #define SREG    1        /* status reg (SR or CCR) */
  13. #define DREG    2        /* Dn */
  14. #define AREG    3        /* An */
  15. #define CREG    4        /* control register */
  16. #define FREG    5        /* floating point register */
  17. #define FCREG   6        /* floating control register */
  18. #define PC      7        /* PC */
  19. #define ZPC     8        /* Supress PC in "new" addressing modes */
  20. #define ZAREG   9        /* Supress An in "new" addressing modes */
  21. #define ZDREG   10        /* Supress Dn in "new" addressing modes */
  22. #define PREG    11        /* PMMU control register */
  23. #define QSTR    12        /* quoted string (used only by eval) */
  24.